package moe.oil.api.emailAPI;

import moe.oil.dto.user.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "email-service", contextId = "eAPI")
public interface EmailAPI {
    //    @Permit(value = Role.ADMIN)

    @PostMapping("/email/send")
    public boolean send(@RequestBody UserDTO userDTO);


    @GetMapping("/email/test/{value}")
    public String test(@PathVariable(value = "value", required = false) String value);
}
